﻿@{
    ViewBag.Title = "UploadAlbumPage";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>
<link href="../../Styles/Validate/cmxform.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/UploadMultiFiles/jquery.MetaData.js" type="text/javascript"></script>
<script src="../../Scripts/UploadMultiFiles/jquery.MultiFile.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#frm').validate({
            rules: {
                filename: { required: true },
                filepicture: {required: true},
                albumname: { required: true },
                category: { required: true },
                country: { required: true }
            },
            messages: {
                albumname: { required: 'Bạn chưa nhập tên album' },
                filepicture: {required: 'Bạn chưa chọn hình đại diện album'},
                filename: { required: 'Chọn bài hát bạn muốn upload' },
                category: { required: 'Bạn chưa chọn thể loại album' },
                country: { required: 'Bạn chưa chọn quốc gia' }
            }
        });
    });
</script>

<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
	<th rowspan="3" class="sized"><img src="../../Images/AdminImages/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
	<th class="topleft"></th>
	<td id="tbl-border-top">&nbsp;</td>
	<th class="topright"></th>
	<th rowspan="3" class="sized"><img src="../../Images/AdminImages/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
	<!--  start content-table-inner -->
	<div id="content-table-inner">
	
	<table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr valign="top">
	<td>
	
	
		<!--  start step-holder -->
		<div id="step-holder">
            <div class="step-no-off">+</div>
			<div class="step-light-left"><a href="/managealbum/viewallalbum?pageindex=1">Xem tất cả</a></div>
			<div class="step-light-right">&nbsp;</div>			
			<div class="step-no">+</div>
			<div class="step-dark-left"><a href="/managealbum/UploadAlbumPage">Upload album mới</a></div>
			<div class="step-dark-right">&nbsp;</div>			
			<div class="clear"></div>
		</div>
		<!--  end step-holder -->
	
		<!-- start id-form -->   
        <form id="frm" action="/managealbum/ConfirmUploadAlbum" method="post" enctype="multipart/form-data">
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<tr>
			<th valign="top">Tên Album</th>
			<td><input type="text" id="albumname" name="albumname" class="inp-form" /></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top">Ca sĩ:</th>
			<td><input type="text" id="singername" name="singername" class="inp-form" /></td>
			<td>
			@*<div class="error-left"></div>
			<div class="error-inner">This field is required.</div>*@
			</td>
		</tr>
        <tr>
			<th valign="top">Năm phát hành</th>
			<td><input type="text" id="releaseyear" name="releaseyear" class="inp-form" /></td>
			<td></td>
		</tr>
		<tr>
		<th valign="top">Thể loại:</th>
		<td>	
		<select  class="styledselect_form_1" id="category" name="category">
			<option value="">--Chọn--</option>
			@foreach (ListenMusic.Category_ServiceReference.Category ct in ViewBag.category)
               { 
                    <option value="@ct.CategoryID">@ct.CategoryName</option>
               }
		</select>
		</td>
		<td></td>
		</tr>
		<tr>
		<th valign="top">Quốc gia:</th>
		<td>	
		<select  class="styledselect_form_1" id="country" name="country">
			<option value="">--Chọn--</option>
			@foreach (ListenMusic.Country_ServiceReference.Country ct in ViewBag.country)
               { 
                    <option value="@ct.CountryID">@ct.CountryName</option>
               }
		</select>
		</td>
		<td></td>
		</tr> 		
		<tr>	
        <th valign="top">Hình Album:</th>	
		<td><input type="file" id="filepicture" name="filepicture" class="file_1" /></td>
	    <td>
	        <div class="bubble-left"></div>
	        <div class="bubble-inner">Bạn có thể chọn hình có đuôi là PNG, JPEG, JPG.</div>
	        <div class="bubble-right"></div>
	    </td>
	</tr>	
	<tr>
	<th>Chọn bài hát:</th>
	<td><input type="file" id="filename" name="filename" class="multi accept-mp3|wma"  /></td>
	<td>
	    <div class="bubble-left"></div>
	    <div class="bubble-inner">Nhấn và giữ phím Ctrl để chọn nhiều bài hát cùng lúc</div>
	    <div class="bubble-right"></div>
	</td>
	</tr>
    <tr>
        <th>Thông tin Album:</th>
        <td><textarea rows="" cols="" name="description" id="description" class="form-textarea"></textarea></td>
    </tr>	
	<tr>
		<th>&nbsp;</th>
		<td valign="top">
			<input type="submit" value="" class="form-submit" />
			<input type="reset" value="" class="form-reset"  />
		</td>
		<td></td>
	</tr>
	</table>
    </form>   
	<!-- end id-form  -->

	</td>
	<td>

	<!--  start related-activities -->
	<div id="related-activities">
		
		<!--  start related-act-top -->
	@*	<div id="related-act-top">
		<img src="../../Images/AdminImages/forms/header_related_act.gif" width="271" height="43" alt="" />
		</div>*@
		<!-- end related-act-top -->
		
		<!--  start related-act-bottom -->
		@*<div id="related-act-bottom">
		
			<!--  start related-act-inner -->
			<div id="related-act-inner">
			
				<div class="left"><a href=""><img src="../../Images/AdminImages/forms/icon_plus.gif" width="21" height="21" alt="" /></a></div>
				<div class="right">
					<h5>Add another product</h5>
					Lorem ipsum dolor sit amet consectetur
					adipisicing elitsed do eiusmod tempor.
					<ul class="greyarrow">
						<li><a href="">Click here to visit</a></li> 
						<li><a href="">Click here to visit</a> </li>
					</ul>
				</div>
				
				<div class="clear"></div>
				<div class="lines-dotted-short"></div>
				
				<div class="left"><a href=""><img src="../../Images/AdminImages/forms/icon_minus.gif" width="21" height="21" alt="" /></a></div>
				<div class="right">
					<h5>Delete products</h5>
					Lorem ipsum dolor sit amet consectetur
					adipisicing elitsed do eiusmod tempor.
					<ul class="greyarrow">
						<li><a href="">Click here to visit</a></li> 
						<li><a href="">Click here to visit</a> </li>
					</ul>
				</div>
				
				<div class="clear"></div>
				<div class="lines-dotted-short"></div>
				
				<div class="left"><a href=""><img src="../../Images/AdminImages/forms/icon_edit.gif" width="21" height="21" alt="" /></a></div>
				<div class="right">
					<h5>Edit categories</h5>
					Lorem ipsum dolor sit amet consectetur
					adipisicing elitsed do eiusmod tempor.
					<ul class="greyarrow">
						<li><a href="">Click here to visit</a></li> 
						<li><a href="">Click here to visit</a> </li>
					</ul>
				</div>
				<div class="clear"></div>
				
			</div>
			<!-- end related-act-inner -->
			<div class="clear"></div>
		
		</div>*@
		<!-- end related-act-bottom -->
	
	</div>
	<!-- end related-activities -->

</td>
</tr>
<tr>
<td><img src="../../Images/AdminImages/shared/blank.gif" width="695" height="1" alt="blank" /></td>
<td></td>
</tr>
</table>
 
<div class="clear"></div>
 

</div>
<!--  end content-table-inner  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</table>

<div class="clear">&nbsp;</div>

